include_directories(.)

add_subdirectory(base)
add_subdirectory(com)
add_subdirectory(data-structures)
add_subdirectory(exceptions)
add_subdirectory(sensor)


aux_source_directory(./base BASE_SRCS)
aux_source_directory(./com COM_SRCS)
aux_source_directory(./data-structures DS_SRCS)
aux_source_directory(./exceptions EXCEPTIONS_SRCS)
aux_source_directory(./sensor SENSOR_SRCS)


add_library(velodyne 
    ${BASE_SRCS}
    ${COM_SRCS}
    ${DS_SRCS}
    ${EXCEPTIONS_SRCS}
    ${SENSOR_SRCS})

find_package(Threads)
target_link_libraries(velodyne ${CMAKE_THREAD_LIBS_INIT})